apiVersion: v1
items:
- apiVersion: v1
  kind: DeploymentConfig
  metadata:
    labels:
      app: release-monitoring-web
      service: web
    name: release-monitoring-web
  spec:
    replicas: 1
    selector:
      deploymentconfig: release-monitoring-web
    strategy:
      activeDeadlineSeconds: 900
      recreateParams:
        timeoutSeconds: 600
        mid:
          failurePolicy: Abort
          execNewPod:
            containerName: release-monitoring-web
            command: [ /bin/sh, -i, -c, "alembic-3 -c /etc/anitya/alembic.ini upgrade head" ]
            volumes:
              - config-volume
      resources: {}
      type: Recreate
    template:
      metadata:
        creationTimestamp: null
        labels:
          app: release-monitoring-web
          deploymentconfig: release-monitoring-web
      spec:
        containers:
        - name: release-monitoring-web
          image: release-monitoring/release-monitoring-web:latest
          command:
            - bash
          args:
            - /etc/anitya/start.sh
          env:
            - name: ANITYA_WEB_CONFIG
              value: /etc/anitya/anitya.toml
          ports:
          - containerPort: 8080
          resources: {}
          volumeMounts:
          - name: config-volume
            mountPath: /etc/anitya
            readOnly: true
          - name: fedora-messaging-config-volume
            mountPath: /etc/fedora-messaging
            readOnly: true
          - name: fedora-messaging-ca-volume
            mountPath: /etc/pki/rabbitmq/ca
            readOnly: true
          - name: fedora-messaging-key-volume
            mountPath: /etc/pki/rabbitmq/key
            readOnly: true
          - name: fedora-messaging-cert-volume
            mountPath: /etc/pki/rabbitmq/cert
            readOnly: true
          readinessProbe:
            timeoutSeconds: 10
            initialDelaySeconds: 15
            httpGet:
              path: /
              port: 8080
          livenessProbe:
            timeoutSeconds: 10
            initialDelaySeconds: 30
            httpGet:
              path: /
              port: 8080
        volumes:
        - name: config-volume
          configMap:
            name: release-monitoring-configmap
        - name: fedora-messaging-config-volume
          configMap:
            name: fedora-messaging-configmap
        - name: fedora-messaging-ca-volume
          secret:
            secretName: release-monitoring-fedora-messaging-ca
        - name: fedora-messaging-key-volume
          secret:
            secretName: release-monitoring-fedora-messaging-key
        - name: fedora-messaging-cert-volume
          secret:
            secretName: release-monitoring-fedora-messaging-cert
    triggers:
    - imageChangeParams:
        automatic: true
        containerNames:
        - release-monitoring-web
        from:
          kind: ImageStreamTag
          name: release-monitoring-web:latest
          namespace: release-monitoring
      type: ImageChange
    - type: ConfigChange
- apiVersion: v1
  kind: DeploymentConfig
  metadata:
    labels:
      app: release-monitoring-check-service
      service: web
    name: release-monitoring-check-service
  spec:
    replicas: 1
    selector:
      deploymentconfig: release-monitoring-check-service
    strategy:
      activeDeadlineSeconds: 900
      recreateParams:
        timeoutSeconds: 30
        mid:
          failurePolicy: Retry
          execNewPod:
            containerName: release-monitoring-web
            command: [ /bin/bash, -c, "alembic-3 -c /etc/anitya/alembic.ini current | grep '(head)'" ]
            env:
              - name: ANITYA_WEB_CONFIG
                value: /etc/anitya/anitya.toml
            volumes:
              - config-volume
      resources: {}
      type: Recreate
    template:
      metadata:
        creationTimestamp: null
        labels:
          app: release-monitoring-check-service
          deploymentconfig: release-monitoring-check-service
      spec:
        containers:
          - name: release-monitoring-web
            image: release-monitoring/release-monitoring-web:latest
            command:
              - python3
            args:
              - /usr/local/bin/check_service
            env:
              - name: ANITYA_WEB_CONFIG
                value: /etc/anitya/anitya.toml
            resources: {}
            volumeMounts:
              - name: config-volume
                mountPath: /etc/anitya
                readOnly: true
              - name: fedora-messaging-config-volume
                mountPath: /etc/fedora-messaging
                readOnly: true
              - name: fedora-messaging-ca-volume
                mountPath: /etc/pki/rabbitmq/ca
                readOnly: true
              - name: fedora-messaging-key-volume
                mountPath: /etc/pki/rabbitmq/key
                readOnly: true
              - name: fedora-messaging-cert-volume
                mountPath: /etc/pki/rabbitmq/cert
                readOnly: true
        volumes:
          - name: config-volume
            configMap:
              name: release-monitoring-configmap
          - name: fedora-messaging-config-volume
            configMap:
              name: fedora-messaging-configmap
          - name: fedora-messaging-ca-volume
            secret:
              secretName: release-monitoring-fedora-messaging-ca
          - name: fedora-messaging-key-volume
            secret:
              secretName: release-monitoring-fedora-messaging-key
          - name: fedora-messaging-cert-volume
            secret:
              secretName: release-monitoring-fedora-messaging-cert
    triggers:
      - imageChangeParams:
          automatic: true
          containerNames:
            - release-monitoring-web
          from:
            kind: ImageStreamTag
            name: release-monitoring-web:latest
            namespace: release-monitoring
        type: ImageChange
      - type: ConfigChange
- apiVersion: v1
  kind: DeploymentConfig
  metadata:
    labels:
      app: release-monitoring-librariesio-consumer
      service: web
    name: release-monitoring-librariesio-consumer
  spec:
    replicas: 1
    selector:
      deploymentconfig: release-monitoring-librariesio-consumer
    strategy:
      activeDeadlineSeconds: 900
      recreateParams:
        timeoutSeconds: 30
        mid:
          failurePolicy: Retry
          execNewPod:
            containerName: release-monitoring-web
            command: [ /bin/bash, -c, "alembic-3 -c /etc/anitya/alembic.ini current | grep '(head)'" ]
            env:
              - name: ANITYA_WEB_CONFIG
                value: /etc/anitya/anitya.toml
            volumes:
              - config-volume
      resources: {}
      type: Recreate
    template:
      metadata:
        creationTimestamp: null
        labels:
          app: release-monitoring-librariesio-consumer
          deploymentconfig: release-monitoring-librariesio-consumer
      spec:
        containers:
          - name: release-monitoring-web
            image: release-monitoring/release-monitoring-web:latest
            command:
              - python3
            args:
              - /usr/local/bin/librariesio_consumer
            env:
              - name: ANITYA_WEB_CONFIG
                value: /etc/anitya/anitya.toml
            resources: {}
            volumeMounts:
              - name: config-volume
                mountPath: /etc/anitya
                readOnly: true
              - name: fedora-messaging-config-volume
                mountPath: /etc/fedora-messaging
                readOnly: true
              - name: fedora-messaging-ca-volume
                mountPath: /etc/pki/rabbitmq/ca
                readOnly: true
              - name: fedora-messaging-key-volume
                mountPath: /etc/pki/rabbitmq/key
                readOnly: true
              - name: fedora-messaging-cert-volume
                mountPath: /etc/pki/rabbitmq/cert
                readOnly: true
        volumes:
          - name: config-volume
            configMap:
              name: release-monitoring-configmap
          - name: fedora-messaging-config-volume
            configMap:
              name: fedora-messaging-configmap
          - name: fedora-messaging-ca-volume
            secret:
              secretName: release-monitoring-fedora-messaging-ca
          - name: fedora-messaging-key-volume
            secret:
              secretName: release-monitoring-fedora-messaging-key
          - name: fedora-messaging-cert-volume
            secret:
              secretName: release-monitoring-fedora-messaging-cert
    triggers:
      - imageChangeParams:
          automatic: true
          containerNames:
            - release-monitoring-web
          from:
            kind: ImageStreamTag
            name: release-monitoring-web:latest
            namespace: release-monitoring
        type: ImageChange
      - type: ConfigChange
kind: List
metadata: {}
